package com.cgd.appointment.mapper;


import com.cgd.appointment.entity.Users;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;


import java.util.List;

@Repository
public interface UsersDao {
    Users findlogin(@Param("username") String username);
    void addusers(@Param("username") String username,@Param("password") String password);
    List<Users> listusers();
    void addmess(@Param("mobile") String mobile,@Param("username") String username,@Param("wechat") String wechat,@Param("loginid") int loginid);
    Users findbyloginid(@Param("loginid") int loginid);
    void addadmins(@Param("users") Users users);
    void deleteuser(@Param("username") String username);
    void updatepassword(@Param("username") String username,@Param("password") String password);
}
